package com.ag.score.mapper;

import com.ag.score.entity.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

public interface TUserMapper extends BaseMapper<TUser> {

    @ResultType(TUser.class)
    @Select("SELECT *  FROM t_user WHERE  phone = #{userName}   limit 1    ")
    TUser getTUserByUserName(@Param("userName") String userName);
}
